package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.domain.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户基础信息Mapper接口
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    @Select("select tui.* from tb_black_list tbl,tb_user_info tui where tui.id = tbl.black_user_id and tbl.user_id = #{userId}")
    IPage<UserInfo> findBlackList(@Param("pages")Page pages,@Param("userId") Long userId);
}
